import {request} from '@/network/request.js'

// 专著
// 查看已通过申请
export function treatiseApplyPassedList(data){
	return request({
		url: '/treatiseApply/findApply',
		data: data
	})
}
// 查看等待申请
export function treatiseApplyUnList(data){
	return request({
		url: '/treatiseApply/findApply',
		data: data
	})
}
// 提交申请新增
export function treatiseApply(data) {
	return request({
		url: '/treatiseApply/insert',
		data: data
	})
}

// 论文
// 查看已通过申请
export function paperApplyPassedList(data){
	return request({
		url: '/paperApply/findApply',
		data: data
	})
}
// 查看等待申请
export function paperApplyUnList(data){
	return request({
		url: '/paperApply/findApply',
		data: data
	})
}
// 提交申请新增
export function paperApply(data) {
	return request({
		url: '/paperApply/insert',
		data: data
	})
}

// 专利
// 查看已通过申请
export function patentApplyPassedList(data){
	return request({
		url: '/patentApply/findApply',
		data: data
	})
}
// 查看等待申请
export function patentApplyUnList(data){
	return request({
		url: '/patentApply/findApply',
		data: data
	})
}
// 提交申请新增
export function patentApply(data) {
	return request({
		url: '/patentApply/insert',
		data: data
	})
}

// 项目
// 查看已通过申请
export function projectApplyPassedList(data) {
	return request({
		url: '/projectApply/findApply',
		data: data
	})
}
// 查看等待申请
export function projectApplyUnList(data){
	return request({
		url: '/projectApply/findApply',
		data: data
	})
}
// 提交申请新增
export function projectApply(data) {
	return request({
		url: '/projectApply/insert',
		data: data
	})
}

// 奖励
// 查看已通过申请
export function rewardApplyPassedList(data) {
	return request({
		url: '/awardApply/findApply',
		data: data
	})
}
// 查看等待申请
export function rewardApplyUnList(data){
	return request({
		url: '/awardApply/findApply',
		data: data
	})
}
// 提交申请新增
export function rewardApply(data) {
	return request({
		url: '/awardApply/insert',
		data: data
	})
}

//**********************删除申请******************

export function delTreatiseApply(data) {
	return request({
		url: '/treatiseApply/deleteById',
		data: data
	})
}
export function delPaperApply(data) {
	return request({
		url: '/paperApply/deleteById',
		data: data
	})
}
export function delPatentApply(data) {
	return request({
		url: '/patentApply/deleteById',
		data: data
	})
}
export function delProjectApply(data) {
	return request({
		url: '/projectApply/deleteById',
		data: data
	})
}
export function delRewardApply(data) {
	return request({
		url: '/awardApply/deleteById',
		data: data
	})
}

// **********************申请修改、删除*************
// treatise  paper patent  project reward
export function treatiseApplyEdit(data) {
	return request({
		url: '/treatiseApply/update',
		data: data
	})
}
export function paperApplyEdit(data) {
	return request({
		url: '/paperApply/update',
		data: data
	})
}
export function patentApplyEdit(data) {
	return request({
		url: '/patentApply/update',
		data: data
	})
}
export function projectApplyEdit(data) {
	return request({
		url: '/projectApply/update',
		data: data
	})
}
export function rewardApplyEdit(data) {
	return request({
		url: '/awardApply/update',
		data: data
	})
}
export function treatiseApplyDel(data) {
	return request({
		url: '/treatiseApply/delete',
		data: data
	})
}
export function paperApplyDel(data) {
	return request({
		url: '/paperApply/delete',
		data: data
	})
}
export function patentApplyDel(data) {
	return request({
		url: '/patentApply/delete',
		data: data
	})
}
export function projectApplyDel(data) {
	return request({
		url: '/projectApply/delete',
		data: data
	})
}
export function rewardApplyDel(data) {
	return request({
		url: '/awardApply/delete',
		data: data
	})
}